from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
import time

driver = webdriver.Chrome()
driver.get('https://sahitest.com/demo/selectTest.htm')

s1 = driver.find_element(By.ID,"s1")
select = Select(s1)

time.sleep(2)
select.select_by_index(1)
time.sleep(2)
select.select_by_value("49")
time.sleep(2)
select.select_by_visible_text('Mail')
time.sleep(2)


driver.quit()
